package cn.com.dhcc.turbo.entity.api;

import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

/**
 * 路由头信息
 * 注意：这个对象对应了常规数据和多媒体数据的XML报文
 * 
 * <datatype></datatype> <!-- 数据类型编码 -->
   <from>
      <syscode></syscode>
   </from>
    <to>
      <syscode></syscode>
   </to>
   <auditPerson></auditPerson>
   <trig></trig>
 */
@XStreamAlias("postHead")
public class Posthead {
	
	/**
	 * 组消息
	 */
	@XStreamAlias("groupId")
	private String groupId;
	

	/**
	 * 发送信息
	 */
	@XStreamAlias("from")
	private RouteEntry from;

	/**
	 * 接收信息
	 */
	@XStreamImplicit
	private List<RouteEntry> toList;

	
	
	/**
	 * 多媒体附件信息
	 */
	@XStreamAlias("attachments")
	private Attachments attachments;

	
	/**
	 * 多媒体附件加密和 壓縮信息
	 */
	@XStreamAlias("processes")
	private Processes processes;

	public RouteEntry getFrom() {
		return from;
	}

	public void setFrom(RouteEntry from) {
		this.from = from;
	}

	public List<RouteEntry> getToList() {
		return toList;
	}

	public void setToList(List<RouteEntry> toList) {
		this.toList = toList;
	}

	

	public Attachments getAttachments() {
		return attachments;
	}

	public void setAttachments(Attachments attachments) {
		this.attachments = attachments;
	}

	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	
	public Processes getProcesses() {
		return processes;
	}

	public void setProcesses(Processes processes) {
		this.processes = processes;
	}
	
	
	@Override
	public String toString() {
		return "Posthead [groupId=" + groupId + ", from=" + from + ", toList="
				+ toList + ", attachments=" + attachments + ", processes="
				+ processes + "]";
	}



	
    
	
}
